﻿@model IEnumerable<MvcMusicStore.Song>
@if (ViewBag.result == false)
{
    @*<h2>Enter the search string!</h2>*@
}
else
{
    if (Model.Count() == 0)
    {
    <h2>The songs were not found!</h2>
    }
    else
    {
        <div id="compositions">
        <h2>Compositions</h2>
        <ul id="songs">
            @foreach (var song in Model)
            {
                <li>
                  <span ><em>Artist:</em>@song.Author.nameAuthor</span>  @Html.ActionLink(song.titleSong,
                "Song", "Store", new { id = song.id }, null)
                <span>
                <embed type="application/x-shockwave-flash" src="/Player/Simple.swf" flashvars="foreColor=#0088CC&amp;analytics=false&amp;filename=/Store/Download/@(song.id)"
                 quality="high" wmode="transparent" width="18" height="18" bgcolor="#FFFFFF"/>
                 </span>
                </li>
              
            }
        </ul>
    </div>
   }
}
